<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>

<script type="text/javascript" src="<?php echo $this->_webroot('servtools/jquery-1.3.2.min.js?v=1.3.2'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('servtools/xheditor/xheditor.min.js?v=1.0.0-final'); ?>"></script>
<link href="<?php echo $this->_webroot('servtools/swfupload/css/default.css'); ?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->_webroot('servtools/swfupload/swfupload.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('servtools/swfupload/swfupload.queue.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('servtools/swfupload/fileprogress.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('servtools/swfupload/handlers.js'); ?>"></script>
<script type="text/javascript">
		var swfu;

	 function winload() {
			var settings = {
				flash_url : "<?php echo $this->_webroot('servtools/swfupload/swfupload.swf'); ?>",
				upload_url: "<?php echo $this->_url('goods/swfupload');?>",
				post_params: {"<?php echo Param::read('Session.postOrGetIdName');?>" : "<?php echo $ps; ?>","gcv":"881257c8fab1044a7f6082c12fe4ee92"},
				file_size_limit : "<?php echo Param::read('upfiles.sizelimit');?> MB",
				file_types : "<?php echo Param::read('upfiles.type');?>",
				file_types_description : "images Files",
				file_upload_limit : 30,
				file_queue_limit : 30,
				file_post_name:"Filedata[]",
				custom_settings : {
					progressTarget : "fsUploadProgress",
					cancelButtonId : "btnCancel"
				},
				debug: false,

				
				button_image_url: "<?php echo $this->_webroot('servtools/swfupload/images/TestImageNoText_65x29.png'); ?>",
				button_width: "65",
				button_height: "29",
				button_placeholder_id: "spanButtonPlaceHolder",
				button_text: '<span class="theFont">上传图片</span>',
				button_text_style: ".theFont { font-size: 12; }",
				button_text_left_padding: 5,
				button_text_top_padding: 3,
				button_window_mode : SWFUpload.WINDOW_MODE.OPAQUE,
				button_cursor : SWFUpload.CURSOR.HAND,
				
				
				file_queued_handler : fileQueued,
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				upload_start_handler : uploadStart,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadGoodsSuccess,
				upload_complete_handler : uploadComplete,
				queue_complete_handler : queueComplete	// Queue plugin event
			};

			swfu = new SWFUpload(settings);
	     };
		  if (document.all){
			window.attachEvent('onload',winload)//IE中
			}
		else{
			window.addEventListener('load',winload,false);//firefox
			}
</script>
<script type="text/javascript">
var introeditor;
$(function(){
	introeditor=$("#protect_content").xheditor({skin:'vista',tools:"Cut,Copy,Paste,Pastetext,Separator,Blocktag,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,SelectAll,Removeformat,Separator,Align,List,Outdent,Indent,Separator,Link,Unlink,Img,Table,Separator,Fullscreen,About"});

});
function introimage(id,imagepath){
	var imagestr="<li id='imgli'><p class='photo'><img src="+imagepath+" width='100' height='100' /></p><p><a href='javascript:;'  onclick='return addIntroImg(this)' >插入</a><a href='javascript:;' name='"+id+"' onclick='return delIntroImg(this)'>删除</a></p></li>";
	$("#introimage").append(imagestr);

}
function checkeck(){
	var protect_content1 = $.trim($("#protect_content").val());
	if(protect_content1==""){
		alert("维权内容不能为空！");
		return false;
	}
}
function delIntroImg(obj){
	if(!confirm('你真的要删除这张图片吗?')){
       return;
		}
	var path=$(obj).parent().parent().children(".photo").children("img").attr("src");
	var iid=$(obj).attr('name');
    var param={
          iid:iid,
          path:path
    	  };
    $.post("<?php echo $this->_url('goods/swfdelimage');?>",param,function(data){
        if(data=='1'){
          		$(obj).parent().parent().remove();
             }else{
                alert('删除失败');
              }
        });
}
function addIntroImg(obj){
    var li=$(obj).parent().parent().children(".photo").children("img").attr("src");
    var str=li.substring(li.indexOf("uploadfiles"));
	introeditor.appendHTML("<img src="+str+"/>");
	return false;
}

</script>
<style type="text/css">
.list .master{
	background-color:#FFEFE8}
.list .ttls{
	font-weight:bolder;
	border-bottom:2px solid #FF6600}
.list .txt{
	padding:5px 0  0 15px}	
.list .master,.list .customer{
	padding:10px 15px}	
</style>
</head>
<body onload="menu_style_change('shop_my_order');changeMenu();">
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

            <div class="cont">
                <div ><h3 class="cont_title">维权信息</h3></div>              

		<form action="<?php echo $this->_url('usershop/shopprotectrights/?');?>order_id=<?php echo $order_id;?>" method="post" onsubmit="return checkeck();">
			<table class="form_table_02">
				<tr>
					<th colspan="2" width="5%">维权内容:</th>
				</tr>
				<tr>
					<td  colspan="2">
					 <div id="display_order" class="tab_box">
					<textarea type="text" id="protect_content" name="data[protect_content]"  cols="73" rows="15" ></textarea>
					<div class="clear" style="height:10px;"></div> 
						<div id="img_select2" style="width:600px;">
							<div id="img_list2" class="imgPan">
								<ul id="introimage" class="clearfix">
								</ul>
							</div>
						</div>
						<div id="fsUploadProgress"></div>
						<div id="divStatus"></div>
						<div> <span id="spanButtonPlaceHolder"></span> <input id="btnCancel" type="button" value="取消" onclick="swfu.cancelQueue();" disabled="disabled" style="display:none" /> </div>
						<span >按ctrl键选择多个文件</span></div></td>
				</tr>
				<tr>
					<th>是否同意:</th>
				
					<td><select name="data[agree]">
							<option value='1'>同意</option>
							<option value='0'>不同意</option>
						</select></td>
				</tr>
			
				<tr>
					<td colspan="2"><input type="submit" value="提交"/></td>
				</tr>
			</table>
	</form>
<div class="clear" style="height:10px;"></div> 
	 <ul class="list">
		<?php if(!empty($result)) {
			foreach($result as $v) {?>
				<li <?php if($v['protectright']['user_type']==0) {?> class="customer" <?php } else {?> class="master" <?php }?>>
					<p class="ttls" >
						<?php if($v['protectright']['user_type']==0) {?>
							客户
						<?php } else {?>
							我
						<?php }?>
						于 <?php echo $v['protectright']['protect_date'];?> 
						<?php if($v['protectright']['status']==1) {?> 
							<font color="red">同意客户的维权</font>并且
						<?php }?>
						说：
					</p>
					<p class="txt"><?php echo $v['protectright']['content'];?></p>
				</li>
			<?php }?>
		<?php } else {?>
			<li class="customer"><p class="txt">没有列表信息！</p></li>
		<?php }?>
	 </ul>
			  
			  
            </div>
	
	

        

    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

</body>
</html>